Skip to content

Fix vector comparison expression for HLSL. #2270

Open
num3ric wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
num3ric:fix/hlsl-vector-compare
Open

Fix vector comparison expression for HLSL. #2270
num3ric wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
num3ric:fix/hlsl-vector-compare

Conversation

@num3ric
Copy link
Contributor

@num3ric num3ric commented Mar 1, 2026

MSL and HLSL do not allow vector bool in if-conditions: wrap with any().

Isolated fix from my new DX12 GPU test support branch: https://github.com/num3ric/OpenColorIO/commits/dx/

Copy link
Collaborator

@doug-walker doug-walker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this fix, Eric! Already a nice benefit from the HLSL test harness you're working on!

Please remember that you must sign your commits for the DCO check to pass. To fix it, you may be able to amend your commit with the signoff and then force push.

Signed-off-by: Eric Renaud-Houde <eric.renaud.houde@gmail.com>
@num3ric num3ric force-pushed the fix/hlsl-vector-compare branch from 4ac06f0 to ff7726f Compare March 1, 2026 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants